home *** CD-ROM | disk | FTP | other *** search
/ Hráč 2004 August / Hrac_72_2004-08_dvd.iso / dema / Rapid Gun / rg_setup.exe / common / error.fx < prev    next >
Text File  |  2004-04-19  |  2KB  |  78 lines

  1. // LF2 Engine
  2. // (C) 2002-3 7FX
  3. //---------------------------------------------------------------------------
  4. #include "basic_vs.fxh"
  5. //---------------------------------------------------------------------------
  6. // If effect cannot be loaded, this effect is used instead, it is simple constant color
  7. //---------------------------------------------------------------------------
  8. // Common parameters
  9. // Desc
  10. string desc : Description = "Error shader, pouzije se, pokud dany shader nelze z nejakeho duvodu nacist, \
  11. zobrazuje objekt konstantni barvou.";
  12. // vertex format
  13. string vf : VertexFormat = "POSITION";
  14. // Shader type error
  15. string type : Type = "error"; 
  16. //---------------------------------------------------------------------------
  17. // Constant color
  18. static const float4 cColor = { 0.0f, 0.9f, 0.8f, 1.f };
  19. // Matrices for fixed function technique
  20. const matrix cMtxW : World;
  21. //---------------------------------------------------------------------------
  22. // Techniques
  23. technique vs11_ps0
  24. <
  25.     // streams for technique
  26.     string stream1 = "POSITION";
  27. >
  28. {
  29.     pass p0
  30.     <
  31.         // stream mapping
  32.         string streammap = "stream1";
  33.     >
  34.     {
  35.         VertexShader = <cBasicVS>; // use shared basic vertex shader
  36.         
  37.         TextureFactor = <cColor>;
  38.         
  39.         ColorOp[0] = SelectArg1;
  40.         ColorArg1[0] = TFactor;
  41.         AlphaOp[0] = SelectArg1;
  42.         AlphaArg1[0] = TFactor;
  43.     }
  44. }
  45. //---------------------------------------------------------------------------
  46. technique vs0_ps0
  47. <
  48.     // streams for technique
  49.     string stream1 = "POSITION";
  50. >
  51. {
  52.     pass p0
  53.     <
  54.         // stream mapping
  55.         string streammap = "stream1";
  56.     >
  57.     {
  58.         // matrices
  59.         WorldTransform[0] = <cMtxW>;
  60.     
  61.         TextureFactor = <cColor>;
  62.         
  63.         ColorOp[0] = SelectArg1;
  64.         ColorArg1[0] = TFactor;
  65.         AlphaOp[0] = SelectArg1;
  66.         AlphaArg1[0] = TFactor;
  67.     }
  68. }
  69. //---------------------------------------------------------------------------
  70.  
  71.  
  72.  
  73.  
  74. //---------------------------------------------------------------------------
  75. /*
  76.  * $Header: $
  77.  */
  78. //---------------------------------------------------------------------------